package com.demo.controller;

import com.demo.service.T1Service;
import com.demo.service.T2Service;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.concurrent.TimeUnit;

/**
 * @Auther: luobiao
 * @Date: 2020/11/30 22:27
 * @Description:
 */
@RestController
public class TestController {
    @Resource
    T1Service t1Service;

    @Resource
    T2Service t2Service;

    @RequestMapping("mobile/v1/realTimeFetal/incrementalReporting")
    public Object incrementalReporting(){
        try {
            TimeUnit.MILLISECONDS.sleep(10);
            System.out.println(Thread.currentThread().getName());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return new ArrayList<>();
    }
}
